package cn.cau.epidemicsurveysystem.vo;

import cn.cau.epidemicsurveysystem.bean.EpidTemplateBean;

import java.util.List;

/**
 * @projectName: gp2022
 * @package: cn.cau.epidemicsurveysystem.vo
 * @className: TemplateAnsVO
 * @author: zy
 * @description: 将一个模板及其对应所有的QuestionAnsVO封装为一个视图对象
 * @date: 2022/3/1 11:11
 * @version: 1.0
 */
public class TemplateAnsVO {
    private EpidTemplateBean templateBean;
    private List<QuestionAnsVO> questionsAndAnswer;

    public TemplateAnsVO(EpidTemplateBean templateBean, List<QuestionAnsVO> questionsAndAnswer) {
        this.templateBean = templateBean;
        this.questionsAndAnswer = questionsAndAnswer;
    }

    public EpidTemplateBean getTemplateBean() {
        return templateBean;
    }

    public void setTemplateBean(EpidTemplateBean templateBean) {
        this.templateBean = templateBean;
    }

    public List<QuestionAnsVO> getQuestionsAndAnswer() {
        return questionsAndAnswer;
    }

    public void setQuestionsAndAnswer(List<QuestionAnsVO> questionsAndAnswer) {
        this.questionsAndAnswer = questionsAndAnswer;
    }
}
